﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Codebehind="NoticeList.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.SystemManage.NoticeList"
    Title="医用耗材管理系统" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">
<script language="javascript" type="text/javascript" src="../../Public/My97DatePicker/WdatePicker.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left"  class="right-color">公告----公告信息列表</td>
    <td align="right"><table width="90" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="right" class="longbutton"><a href="NoticeAdd.aspx">添加公告信息</a></td>
  </tr>
</table></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:14px;">
      <tr>
        <td align="left" class="bor bor-bg">公告/注意事项查询条件</td>
      </tr>
      <tr>
        <td align="left" class="bor">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t1">
  <tr>
    <td align="right" width="100">公告标题：</td>
    
    <td align="left" width="150">
        <asp:TextBox ID="txtTopic" runat="server"></asp:TextBox>
        </td>
        <td align="right" width="120">公告类型：</td>
        <td width="150">
            <asp:DropDownList ID="ddlType" runat="server">
                          <asp:ListItem Value="1">网站公告</asp:ListItem>
                          <asp:ListItem Value="2">注意事项</asp:ListItem>
                      </asp:DropDownList>
            </td>
            <td align="right" width="100">公告日期：</td>
            <td>
            <input id="notice_date_ahead" type="text" onClick="WdatePicker()" runat="server" style="width: 140px"/>
                </td>
             <td>到</td>
             <td>
             <input id="notice_date_down" type="text" onClick="WdatePicker()" runat="server" style="width: 140px"/>
             </td>
   </tr><tr>
    <td align="right" colspan="8">
        <asp:Button ID="Button1" runat="server" Text="查找" CssClass="button" OnClick="btnSearch_click" />
        </td>
  </tr>
</table>
</td>
  </tr>
</table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
        <tr>
            <td class="bor bor-bg">
                公告列表
            </td>
        </tr>
        <tr>
            <td class="bor" style="padding:13px;">
                <asp:GridView ID="grvNoticeList" runat="server" OnPageIndexChanging="grvNoticeList_PageIndexChanging" Width="100%"
                    AllowPaging="True" AutoGenerateColumns="False" PageSize="15" OnRowDataBound="grvNoticeList_RowDataBound"
                    OnRowDeleting="grvNoticeList_RowDeleting" DataKeyNames="NOTICE_ID">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="gv-first-line" />
                    <PagerStyle CssClass="fy" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="gv-head" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                    <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
                    <EmptyDataTemplate>
                        <table width="450" height="100">
                            <tr>
                                <td align="center" class="jg">
                                    对不起，没有找到任何相关记录
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="NOTICE_ID" HeaderText="编号" />
                        
                   <asp:TemplateField HeaderText="标题" ShowHeader="False">
                            <ItemTemplate> 
                                <a href="noticeDetail.aspx?id=<%#Eval("notice_id") %>"><%#Eval("topic")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>        
                        <asp:BoundField DataField="EXPIRE" HeaderText="到期日期" />
                        <asp:BoundField DataField="VALID" HeaderText="是否有效" />
                        <asp:BoundField DataField="NOTICE_DATE" HeaderText="创建日期" />
                        <asp:BoundField DataField="SIGNATURE" HeaderText="发布者" />
                        <asp:TemplateField HeaderText="修改" ShowHeader="False">
                            <ItemTemplate>
                            <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td height="25" align="center" class="button" style="padding-top:2px;">
                                <a href="noticeadd.aspx?id=<%#Eval("notice_id") %>">编辑</a>
                                </td></tr></table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowDeleteButton="True" DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt; "  ControlStyle-CssClass="button1" ControlStyle-Height="25" ControlStyle-Width="57" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
